package fr.aracore.domotique.zapi.model.impl;

import fr.aracore.domotique.zapi.model.Sensor;

public class KwSensorDescriptor extends SensorDescriptor {
	@Override
	public String tag() {
		return "kw";
	}

	@Override
	public String libelle() {
		return "power";
	}

	@Override
	public String stateDescriptionForSensor(Sensor sensor) {
		long lcLong=(long)Double.parseDouble(sensor.value())*100;
		return (lcLong/100.0)+" kW";
	}

}
